package com.dios.mirage.component;

import net.rim.device.api.ui.Color;
import net.rim.device.api.ui.Manager;
import net.rim.device.api.ui.XYEdges;
import net.rim.device.api.ui.container.HorizontalFieldManager;
import net.rim.device.api.ui.decor.Border;
import net.rim.device.api.ui.decor.BorderFactory;

public class HFocusableManager extends HorizontalFieldManager {

	public HFocusableManager() {
		super(Manager.HORIZONTAL_SCROLL | Manager.FOCUSABLE);
	}

	protected void onFocus(int arg0) {
		super.onFocus(arg0);
		this.setBorder(BorderFactory.createRoundedBorder(
				new XYEdges(5, 5, 5, 5), Color.RED, Border.STYLE_SOLID));
	}

	protected void onUnfocus() {
		super.onUnfocus();
		this.setBorder(null);
	}

}
